package com.workshop.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import com.workshop.interceptor.HandlerInterceperCustom;

@Configuration
public class CustomWebAppConfig implements WebMvcConfigurer{
	
	/**
	 * 配置拦截路径
	 * @author chenluqiang
	 * @date 2019年3月13日 上午10:12:22 
	 *	@param registry
	 */
	@Override
	public void addInterceptors(InterceptorRegistry registry) {
		registry.addInterceptor(new HandlerInterceperCustom()).addPathPatterns("/**")
//		.excludePathPatterns("/uUser/**")
		;
	}
	
}
